<template>
	<view>
		<!-- <web-view src="https://m.baidu.com"></web-view> -->
		<!-- 网页视图 -->
		<web-view :src="href"></web-view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			href: ''
		};
	},
	methods: {},
	onLoad(options) {
		console.log(options);
		const { href, title } = options;
		this.href = 'http://www.codeboy.com:9999/' + href;
		// 设置导航栏的标题
		uni.setNavigationBarTitle({
			title
		});
	}
};
</script>

<style></style>
